package hud.data;

import data.DatabaseClient;

public class DatabaseTreeItem {
    private String name;
    private DatabaseTreeItemType type;
    private DatabaseClient databaseClient;

    public DatabaseTreeItem(String name, DatabaseTreeItemType type, DatabaseClient client) {
        this.name = name;
        this.type = type;
        this.databaseClient = client;
    }

    public DatabaseTreeItemType getType() {
        return type;
    }

    public void setType(DatabaseTreeItemType type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return name;
    }

    public DatabaseClient getClient() {
        return databaseClient;
    }

    public void setMongoClient(DatabaseClient client) {
        this.databaseClient = client;
    }
}
